package com.wondream.myframework.thread;

import java.util.UUID;

/**
 * @author wondream
 * @version 1.0
 * @create 2022/11/13 8:53 AM
 */
public class ThreadLocalTest {
    static ThreadLocal<String> userToken = new ThreadLocal<>();

    public static void main(String[] args) {
        new Thread(() -> {
            userToken.set(UUID.randomUUID().toString());
            System.out.println(userToken.get());
        }).start();
    }
}
